package com.lnsf.bookstore.web.token.dao;

import com.lnsf.bookstore.common.dao.BaseDao;
import com.lnsf.bookstore.web.token.vo.Token;
import org.apache.ibatis.annotations.Param;

/**
 * 用户Token
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-03-23 15:22:07
 */
public interface ApiTokenMapper extends BaseDao<Token> {

    Token queryByUserId(@Param("userId") Integer userId);

    Token queryByToken(@Param("token") String token);

}
